from django.db import models

# Create your models here.

class StuModel(models.Model):
    GENDER = [
        (1, '男'),
        (2, '女'),
        (3, '保密'),
    ]
    name = models.CharField(max_length=20)
    age = models.IntegerField()
    gender = models.IntegerField(choices=GENDER)
    class Meta:
        db_table = 'student'
    def __str__(self):
        return self.name
